const  fs = require('fs');
const  path=require('path')




// _dirname 魔术变量  绝对路径 可以指向当前文件的绝对路径
// console.log(path.resolve(__dirname))   //E:\k0904_第四阶段\day63


// let url=path.resolve(__dirname)

// 设计路径拼接
// path.join('a','b','c')===>/a/b/c

//      console.log(  path.join(path.resolve(__dirname),'./4.html')); // E:\k0904_第四阶段\day63\4.html



   let result=  fs.readFileSync( path.join(path.resolve(__dirname),'./4.html'),'utf8')

console.log(result)